import json


async def get_reminder_from_id(rem_id):
    """Finds the reminder with the specified ID.

    Args:
        rem_id (string): The ID
    Returns:
        The database entry of the reminder. Returns False if reminder doesn't exist.
    """
    reminders = json.load(open('settings/database.json', 'r'))['reminders']

    for i in reminders:
        if i['id'] == rem_id:
            return i

    return False