auto load database