More DB methods and SQL file update