store title in database