updated startup functions and db