[Tak] Update Database querying process